Skip to content

Conversation

@sfendell-labelbox
Copy link
Contributor

Check that these fields are non-empty on creation to match frontend behavior.

Information on configuring your server can be found here (this is where the url points to and the secret is set).
https://docs.labelbox.com/en/configure-editor/webhooks-setup#setup-steps
https://docs.labelbox.com/reference/webhook
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little out of scope, but this docs link is broken.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Copy link
Contributor

@kopreschko kopreschko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work in both the API and SDK by adding tests for these validations! Just some minor observations, the rest looks good to me.


webhook.delete()


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These, in my opinion, should be considered unit-tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a lot of tests in integration that could be better considered a unit test, but this needs a configured project and client which only exist in integration fixtures, and pulling them out would be too much of a pain for this I think.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

client and project could be mocks, the exceptions are thrown before these are used.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I moved them to unit.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second Klaus comments, after that can approve

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be fixed now and checks are passing, can I get an approval?

@adrian-chang adrian-chang requested a review from a team November 16, 2023 15:54
@kopreschko kopreschko self-requested a review November 17, 2023 16:30
Copy link
Contributor

@kopreschko kopreschko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work Sam!

@sfendell-labelbox sfendell-labelbox merged commit 371dcc7 into develop Nov 17, 2023
@sfendell-labelbox sfendell-labelbox deleted the sfendell/SDK-400 branch November 17, 2023 20:15
@sfendell-labelbox sfendell-labelbox restored the sfendell/SDK-400 branch December 4, 2023 21:12
@adrian-chang adrian-chang deleted the sfendell/SDK-400 branch April 10, 2024 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants